package com.fr.report.web.ui;

import com.fr.base.core.json.JSONException;
import com.fr.base.core.json.JSONObject;
import com.fr.web.Repository;

public class Label extends Widget
{
  protected String text;

  public String getXType()
  {
    return "label";
  }

  public boolean isEditor()
  {
    return false;
  }

  public String[] supportedEvents()
  {
    return new String[0];
  }

  public String getText()
  {
    return this.text;
  }

  public void setText(String paramString)
  {
    this.text = paramString;
  }

  public JSONObject createJSONConfig(Object paramObject, Repository paramRepository)
    throws JSONException
  {
    return super.createJSONConfig(paramObject, paramRepository).put("render", true);
  }

  public boolean equals(Object paramObject)
  {
    if ((paramObject == null) || (!(paramObject instanceof Label)))
      return false;
    return super.equals(paramObject);
  }
}